package top.eggcode.modules.user.model;

import lombok.Data;
import top.eggcode.common.model.PageQuery;

/**
 * Title:
 * Description: TODO
 * Date: 2021/5/16 8:53
 *
 * @author JiaQi Ding
 * @version 1.0
 */
@Data
public class RoleQuery extends PageQuery {

    private String name;
    private String code;
    /**
     * 排序字段（名称）
     */
    private String sortField;
    /**
     * 排序规则，升序/降序
     */
    private String sortRule;

    {
        this.sortField = "createdAt";
        this.sortRule = "asc";
    }


    public RoleQuery() {
        this.sort = "createdAt";
    }
}
